package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserMessageDmDao;
import com.frogs.ucenter.entity.UserMessageDm;
import com.frogs.ucenter.service.UserMessageDmService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userMessageDmService")
public class UserMessageDmServiceImpl extends BaseServiceImpl<UserMessageDm> implements UserMessageDmService {
    @Autowired
    private UserMessageDmDao userMessageDmDao;

    public UserMessageDmServiceImpl() {
        super();
    }

    public UserMessageDmDao getUserMessageDmDao() {
        return userMessageDmDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserMessageDm> getBaseDao() {
        return userMessageDmDao;
    }

    public void setUserMessageDmDao(UserMessageDmDao userMessageDmDao) {
        this.userMessageDmDao = userMessageDmDao;
    }
}